package com.hellowx_ssm.invocation;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/6/24
 */
public class MyInvocation implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("开启xx");
        Object ret = methodInvocation.proceed();
        System.out.println("关闭xx");
        return ret;
    }
}
